

/**
 * RdDeviceBroadcast API JS
 */
import type { ResponseStruct } from '#/global'

/**
* 获取RdDeviceBroadcast分页列表
* @returns
*/
export function page(data: any): Promise<ResponseStruct<any>> {
    return useHttp().get('device/rdDeviceBroadcast/list', { params: data })
}

/**
* 添加RdDeviceBroadcast
* @returns
*/
export function create(data: any): Promise<ResponseStruct<any>> {
  return useHttp().post('device/rdDeviceBroadcast', data)
}
/**
* 更新RdDeviceBroadcast数据
* @returns
*/
export function save(id: number, data: any): Promise<ResponseStruct<any>> {
    return useHttp().put(`device/rdDeviceBroadcast/${id}`, data)
}

/**
* 将RdDeviceBroadcast删除，有软删除则移动到回收站
* @returns
*/
export function deleteByIds(ids: number[]): Promise<ResponseStruct<null>> {
  return useHttp().delete('device/rdDeviceBroadcast', { data: ids })
}